package com.wf.articleManagement;


import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

//将微服务注册进nacos
@EnableDiscoveryClient
@SpringBootApplication
@Slf4j
@MapperScan("com.wf.articleManagement.mapper")
//开启Feign
@EnableFeignClients
//解决引入spring注入的工具类，无法找到的错误
@Import({
        com.wf.apicommons.config.FeignConfig.class,
        com.wf.apicommons.config.MyBatisPlusConfig.class
})
public class ArticleManagementApplication {
    public static void main(String[] args) {
        SpringApplication.run(ArticleManagementApplication.class, args);
        log.info("博文管理微服务启动成功--端口号:9002");
    }
}